package com.zsh.console.service;

import org.springframework.security.crypto.password.PasswordEncoder;

/**
 * Created by xinghao1 on 2017/7/15.
 */
public class SimplePasswordEncoder implements PasswordEncoder {
    @Override
    public String encode(CharSequence charSequence) {
        return charSequence.toString();
    }

    @Override
    public boolean matches(CharSequence charSequence, String s) {
        return charSequence.toString().equals(s);
    }
}
